<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/index.php/admin/index/test/username/abc" method="post">
    <p>
        <input type="text" name="username" value=""><br>

    </p>
    <p>
        <label><input type="checkbox" name="hobby[]"  value="1">足球</label>
        <label><input type="checkbox" name="hobby[]"  value="2">篮球</label>
        <label><input type="checkbox" name="hobby[]"  value="3">乒乓球</label>
        <label><input type="checkbox" name="hobby[]"  value="4">台球</label>
    </p>
    <button>提交</button>
</form>
</body>
</html>